package com.shang.dao;

import com.shang.dto.CommentDTO;
import com.shang.entity.Comment;
import com.shang.entity.Comment2;
import org.springframework.stereotype.Component;

import java.util.List;

public interface CommentDao {
    int getCommentValue(long Comment_id);
    List<CommentDTO> getCommentsByPage(int pageNum, int pageSize);
    int getCommentNumber();
    int getCommentValueById(long comment_id);
    int updateCommentValue(long comment_id,int scoreValue);
    int updateCommentMark(long comment_id,int isMark);
    int addUserMark(String userName,long comment_id,String markTime);
    boolean checkMark(String userName,long comment_id);
    int removeMark(String userName,long comment_id);
    int getUserMarkNum(String userName);
    boolean haveScore(long comment_id);
}
